#include <iostream>
#include <vector>
using namespace std;

int main()
{
    cout << "hello" << endl;
    //vector 构造copy数组
    int arr[] = {2, 3, 4, 1, 9};
    vector<int> v1(arr, arr + sizeof(arr) / sizeof(int));

    vector<int>::iterator begin = v1.begin();
    vector<int>::iterator end = v1.end();
    while (begin != end)
    {
        //获取每个元素
        cout << *begin << endl;
        begin++;
    }

    system("pause");
    return 0;
}